<?php

/**------------------------------------------------------------------------
com_mediamallfactory - Media Mall Factory 3.3.5 
------------------------------------------------------------------------
 * @author TheFactory
 * @copyright Copyright (C) 2011 SKEPSIS Consult SRL. All Rights Reserved.
 * @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * Websites: http://www.thefactory.ro
 * Technical Support: Forum - http://www.thefactory.ro/joomla-forum/
-------------------------------------------------------------------------*/

defined('_JEXEC') or die;

class JHtmlMediaMallFactoryPack
{
  public static function unread($items, $type)
  {
    $html = array();

    if (isset($items[$type]) && $items[$type]->count) {
      $html[] = '<span class="factory-badge badge-important">'.$items[$type]->count.'</span>';
    }

    return implode("\n", $html);
  }
}
